const {app,BrowserWindow,Notification,ipcMain}=require('electron');


let mainWindow=null;

app.on('ready',()=>{
    mainWindow=new BrowserWindow({
        width:800,
        height:600,
        webPreferences:{
            nodeIntegration:true,
            enableRemoteModule: true
        }
    })
    mainWindow.loadFile('./rendPages/showBqb.html').then(r => {});
    mainWindow.webContents.openDevTools();
    // console.log('send mess');
    // send_a()
    // mainWindow.webContents.send('get-data')
    setTimeout(()=>{
        send_a();
    },500)
})

function send_a(){
    mainWindow.webContents.send('get-data')
    console.log('send mess');
}
